﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using ltModel;

public partial class HomePicLists : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        tupianbind();//图片绑定
    }
    private void tupianbind()
    {
        DataTable dt = new DataTable();
        dt = DataObject.Query("select * from lt_article_content where (Classid=62 or Classid=63) and TitlePic<>'' order by Dat desc,News_id desc").Tables[0];
        Repeater1.DataSource = dt;
        Repeater1.DataBind();
        dt.Dispose();
    }
    protected string LeftString(object str, int len)
    {
        return Str.LeftString(str.ToString(), len);
    }
    protected string ReDate(object dat, int k)
    {
        return Str.ReDate(dat.ToString(), k);
    }
}